<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        table,
        td,
        th {
            border: 1px solid;
            /* 边框塌陷 */
            border-collapse: collapse;
        }
    </style>
</head>

<body>
    <!-- 表格 table、 行 tr、列 td、th 表头文字自动居中，单元格合并 colspan rowspan-->
    <table>
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>性别</th>
        </tr>
        <tr>
            <td colspan="2">1-1</td>
            <td>易烊千玺</td>
            <!-- <td>1-3</td> -->
        </tr>
        <tr>
            <td rowspan="2">2-1</td>
            <td>2-2</td>
            <td>2-3</td>
        </tr>
        <tr>
            <td>3-1</td>
            <td>3-2</td>
            <!-- <td>3-3</td> -->
        </tr>
    </table>


    <input type="button" value="-">
    <span>5</span>
    <input type="button" value="+">

    <!-- 编号、名称、单价、+- 、购买数量、备注 -->

    <table>
        <tr>
            <td>1</td>
            <td>咖啡</td>
            <td>30</td>
            <td>
                <input type="button" value="-">
                <span>1</span>
                <input type="button" value="+">
            </td>
        </tr>
        <tr>
            <td>2</td>
            <td>奶茶</td>
            <td>18</td>
            <td>
                <input type="button" value="-">
                <span>1</span>
                <input type="button" value="+">
            </td>
        </tr>
    </table>
</body>

</html>